﻿using SqlSugar;

namespace Model.Entity
{
    [SugarTable("route")]
    public class RouteEntity : BaseEntity
    {
        [SugarColumn(IsNullable = false, ColumnDescription = "菜单名称")]
        public string Name { get; set; }

        [SugarColumn(IsNullable = false, ColumnDescription = "菜单图标")]
        public int Icon { get; set; }

        [SugarColumn(IsNullable = false, ColumnDescription = "菜单父亲菜单")]
        public int ParentId { get; set; } = 0;

        [SugarColumn(IsNullable = true, ColumnDescription = "菜单Class")]
        public string ClassName { get; set; }

        [SugarColumn(IsOnlyIgnoreInsert = true, ColumnDescription = "是否是webview")]
        public bool IsWebView { get; set; } = false;

        [SugarColumn(IsNullable = false, ColumnDescription = "排序")]
        public int Order { get; set; }
    }
}
